import { http } from '@/utils/http'
import { passInfo, sendInfo } from './model'

/** 【1.2】发送短信验证码 */
export const sendSmsCode = (data: sendInfo) => {
  return http({
    url: '/edu/teachers/send-sms-code',
    method: 'POST',
    data,
  })
}

/** 【1.2】验证短信验证码 */
export const verifySmsCode = (data: sendInfo) => {
  return http({
    url: '/edu/teachers/verify-sms-code',
    method: 'POST',
    data,
  })
}

/** 【1.2】修改密码 */
export const changePassword = (data: passInfo) => {
  return http({
    url: '/edu/teachers/change-password',
    method: 'POST',
    data,
  })
}
